﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserPlanMonthAdd.aspx.cs"
    Inherits="UserPlanMonth_UserPlanMonthAdd" Theme="skin_control" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>员工月计划添加</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
         
        function department(str) {
            window.open('../WebCommon/Department.aspx?SID=' + str, '', 'width=700,height=580,top=200, left=300');
        }
        
       
    </script>
    <script type="text/javascript" language="javascript">
        function userinfo(str) {
            window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300');
        }
    </script>
    <script type="text/javascript" language="javascript">
        function slavedepartment(str) {
            window.open('../WebCommon/UserDepartmentSlave.aspx?SID=' + str, '', 'width=700,height=580,top=80, left=250');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
    </asp:ScriptManager>
    <div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="firstbjcolor" style="height: 14px;">
                    <span class="currentHere">当前位置:员工月计划管理-&gt;添加员工月计划</span>
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                    height: 30px;">
                    部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    月周期:<asp:DropDownList ID="drpMonthDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpMonthDate_SelectedIndexChanged"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    <asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                        SkinID="checkboxSkin" />
                    <asp:Button ID="btnSave" runat="server" Text="保存待发" OnClick="btnSave_Click" Width="60px" />
                    <asp:Button ID="btnOk" runat="server" Text="立即提交" OnClick="btnOk_Click" Width="60px"
                        OnClientClick="return confirm('确认要提交吗？');" />
                    <asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="上传附件" />
                    <asp:Button ID="btnMofify" runat="server" OnClick="btnMofify_Click" Text="修改" />
                    <asp:Button ID="btnMonthResolve" runat="server" Text="添加分解" OnClick="btnMonthResolve_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="height: 18; width: 98.6%" id="Div1">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="background-color: #ffffff;">
                                <td class="PlanModifyTableHeader" style="width: 4%" align="center">
                                    选择
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 4%" valign="middle" align="center">
                                    计划编号
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 13%">
                                    计划名称
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    实施步骤
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 6%">
                                    来源
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    完成时间
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                    责任部门
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                    责任人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    配合部门
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 13%">
                                    配合部门责任
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" style="width: 8%" align="center">
                                    评估人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" style="width: 7%" align="center">
                                    备注
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 5%" valign="middle" align="center">
                                    操作
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="overflow-y: scroll; height: 450px; width: 100%" id="dvBody">
                        <asp:GridView ID="gdvMonthPlan" runat="server" AutoGenerateColumns="False" Width="100%"
                            DataKeyNames="MonthPlanId,PlanSendState,Source" SkinID="gridviewSkin" ShowHeader="False"
                            EnableModelValidation="True">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="4%" HorizontalAlign="Center" Wrap="False" VerticalAlign="Middle" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="MonthPlanSortId" HeaderText="计划编号">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="4%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="4%" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="13%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="13%" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PlanStep" HeaderText="实施步骤">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="10%" Wrap="True" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="计划来源">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnSource" runat="server" CausesValidation="False" OnClick="lbtnSource_Click"></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                    HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                    <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="7%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任" HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="13%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="13%" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Remart" HeaderText="备注" HtmlEncode="False">
                                    <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="7%" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDel" runat="server" Text="删除" Width="90%" OnClick="btnDel_Click"
                                            SkinID="buttonSkin" OnClientClick="return confirm('确认要删除吗？');" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="MonthPlanId" HeaderText="id" Visible="False"></asp:BoundField>
                                <asp:BoundField DataField="PlanSendState" HeaderText="PlanSendState" Visible="False" />
                                <asp:BoundField DataField="Source" HeaderText="计划来源" Visible="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="QuarterPlanId" HeaderText="QuarterPlanId" Visible="False" />
                            </Columns>
                        </asp:GridView>
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="height: 50px; background-color: #ffffff;">
                                <td style="width: 4%; height: 54px;">
                                    <input id="Hidden1" style="width: 50%" type="hidden" />
                                </td>
                                <td style="width: 4%; height: 54px;" valign="middle">
                                    <input id="txtMonthPlanSortId" runat="server" style="width: 80%;" type="text" value="1" />
                                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="txtMonthPlanSortId"
                                        Display="Dynamic" ErrorMessage="计划编号只能为整数" Operator="DataTypeCheck" Type="Integer"
                                        Width="0px"></asp:CompareValidator>
                                </td>
                                <td valign="middle" align="center" style="width: 13%; height: 54px;">
                                    <asp:TextBox ID="txtWorkItem" runat="server" TextMode="MultiLine" Width="90%" SkinID="textboxMultiLineSkin"></asp:TextBox>
                                </td>
                                <td valign="middle" align="center" style="width: 10%; height: 54px;">
                                    <asp:TextBox ID="txtPlanStep" runat="server" TextMode="MultiLine" Width="90%" SkinID="textboxMultiLineSkin"></asp:TextBox>
                                </td>
                                <td valign="middle" align="center" style="width: 6%; height: 54px;">
                                    <asp:Literal runat="server" ID="lSource" Text="新增"></asp:Literal>
                                </td>
                                <td valign="middle" align="center" style="width: 8%; height: 54px;">
                                    <asp:TextBox ID="txtCompleteTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                        Width="90%" SkinID="textboxSkin"></asp:TextBox><asp:CompareValidator ID="CompareValidator2"
                                            runat="server" ControlToValidate="txtCompleteTime" Display="Dynamic" ErrorMessage="日期类型不正确"
                                            Operator="DataTypeCheck" Type="Date" Width="0px"></asp:CompareValidator>
                                </td>
                                <td valign="middle" align="center" style="width: 7%; height: 54px;">
                                    <asp:TextBox ID="txtMasterDepartment" Width="80%" runat="server" Enabled="False"
                                        SkinID="textboxSkin"></asp:TextBox>
                                </td>
                                <td valign="middle" align="center" style="width: 7%; height: 54px;">
                                    <input id="txtMasterPeople" type="text" runat="server" style="width: 55%;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo('txtMasterPeople');"><img alt="" src="../images/addpages.jpg"
                                            border="0" /></a>
                                </td>
                                <td valign="middle" align="center" style="width: 8%; height: 54px;">
                                    <input id="txtSlaveDepartment" type="text" runat="server" style="width: 55%;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:slavedepartment('txtSlaveDepartment');"><img alt=""
                                            src="../images/addpages.jpg" border="0" /></a>
                                </td>
                                <td valign="middle" align="center" style="width: 13%; height: 54px;">
                                    <asp:TextBox ID="txtSlaveDepartmentDuty" runat="server" TextMode="MultiLine" Width="80%"
                                        SkinID="textboxMultiLineSkin"></asp:TextBox>
                                </td>
                                <td valign="middle" style="width: 8%; height: 54px;" align="center">
                                    <input id="txtEvaluatePeople" type="text" runat="server" style="width: 60%;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo('txtEvaluatePeople');"><img alt="" src="../images/addpages.jpg"
                                            border="0" /></a>
                                </td>
                                <td valign="middle" style="width: 7%; height: 54px;" align="center">
                                    <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="90%" SkinID="textboxMultiLineSkin"></asp:TextBox>
                                </td>
                                <td style="width: 5%; height: 54px;" valign="middle">
                                    <asp:Button ID="btnAdd" runat="server" Width="90%" Text="确定" OnClick="btnAdd_Click"
                                        SkinID="buttonSkin" ValidationGroup="1" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
